// import com.alibaba.druid.sql.ast.SQLStatement;
// import com.alibaba.druid.sql.dialect.mysql.ast.statement.MySqlStatementImpl;
// import com.alibaba.druid.sql.dialect.mysql.visitor.MySqlASTVisitor;

// import java.util.ArrayList;
// import java.util.List;

#include "MySqlDeclareHandlerStatement.h"
#include "../../../../ast/SQLStatement.h"
#include "../../visitor/MySqlASTVisitor.h"

MySqlDeclareHandlerStatement::MySqlDeclareHandlerStatement()
{
  conditionValues = std::make_shared<std::list<ConditionValue_ptr>>();
}

ConditionValue_list_ptr MySqlDeclareHandlerStatement::getConditionValues()
{
  return conditionValues;
}

void MySqlDeclareHandlerStatement::setConditionValues(ConditionValue_list_ptr conditionValues)
{
  this->conditionValues = conditionValues;
}

MySqlHandlerType_ptr MySqlDeclareHandlerStatement::getHandleType()
{
  return handleType;
}

void MySqlDeclareHandlerStatement::setHandleType(MySqlHandlerType_ptr handleType)
{
  this->handleType = handleType;
}

SQLStatement_ptr MySqlDeclareHandlerStatement::getSpStatement()
{
  return spStatement;
}

void MySqlDeclareHandlerStatement::setSpStatement(SQLStatement_ptr spStatement)
{
  this->spStatement = spStatement;
}

// @Override
void MySqlDeclareHandlerStatement::accept0(MySqlASTVisitor_ptr visitor)
{
  if (visitor->visit(SharedObject(MySqlDeclareHandlerStatement)))
  {
    acceptChild(visitor, spStatement);
  }
  visitor->endVisit(SharedObject(MySqlDeclareHandlerStatement));
}
